package ca.llsutherland.nfl.fixture;

import java.util.ArrayList;
import java.util.List;

import ca.llsutherland.nfl.domain.Person;

public class PersonFixture {

	public static Person createPerson(String firstName, String lastName, String email, String location, String phoneNumber, Long userId) {
		Person person = new Person();
		person.setFirstname(firstName);
		person.setLastname(lastName);
		person.setEmail(email);
		person.setLocation(location);
		person.setPhoneNumber(phoneNumber);
		person.setUserId(userId);
		return person;
	}

	public static List<Person> createTwoPeople() {
		List<Person> people = new ArrayList<Person>();
		people.add(createFirstPerson());
		people.add(createSecondPerson());
		return people;
	}

	public static Person createSecondPerson() {
		return PersonFixture.createPerson("Second", "Person", "Second.Person@gmail.com", "Calgary", "2034557535", 2L);
	}

	public static Person createFirstPerson() {
		return PersonFixture.createPerson("First", "Person", "First.Person@gmail.com", "Calgary", "1034557535", 1L);
	}

	public static Person createPerson(long id, String firstname, String lastname, String location, String email, String phoneNumber, Long userId) {
		Person person = createPerson(firstname, lastname, email, location, phoneNumber, userId);
		person.setId(id);
		return person;
	}

}
